package com.ins.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 钱包 实体类。
 *
 * @author ins
 * @since 2024-05-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "app_wallet")
public class AppWallet extends BaseEntity<AppWallet> implements Serializable {

    @Serial
    private static final long serialVersionUID = 7424465629124815334L;

    @Column(value = "user_id")
    private Long userId;

    /**
     * 钱包总收入额
     */
    @Column(value = "income")
    private BigDecimal income;

    /**
     * 钱包总支出额
     */
    @Column(value = "outcome")
    private BigDecimal outcome;

    /**
     * 钱包总可用余额
     */
    @Column(value = "balance")
    private BigDecimal balance;


}
